import React , { Component } from "react";
import ReactDOM from "react-dom";
import { BrowserRouter , Route , Link } from "react-router-dom";
import { History } from "history";
import $ from "../../common/static/js/jQuery";
import Home from "../../template/home";
import News from "../../template/news";

class App extends Component {

	render() {
		var data = {
			title:[
					{path:"/home",title:"公司首页"},
					{path:"/news",title:"新闻中心"},
					{path:"/pro",title:"产品中心"},
					{path:"/example",title:"成功案例"},
					{path:"contact",title:"联系我们"}
				],
			imgs:["banner1.JPG","banner2.png","banner3.png","banner4.png","banner5.JPG"]
		}
		return (
			<Home data={data}/>	
		);
	}
}

ReactDOM.render(
				<BrowserRouter>
					<Route path="/" component={ App } >

					</Route>
				</BrowserRouter>
				,document.getElementById("root"));